import { gameMain } from "../GameMain";
import { RpcCallRes, RpcHandler, RpcHandlerProxy } from "kilom";
import { SvrType } from "../../../config/SvrCfg";

export default class RpcGameMain extends RpcHandler {

    delPlayer(pid: number): RpcCallRes<void> {
        gameMain.delPlayer(pid);
        return {};
    }

}

declare global {
    interface Rpc {
        [SvrType.game]: IRpcGame
    }

    interface IRpcGame {
        main: RpcHandlerProxy<RpcGameMain>
    }
}